package com.siblings.loan.ui.loan.impl

import com.siblings.loan.http.ApiService
import com.siblings.loan.http.HttpHelper
import com.siblings.loan.http.IHttpCallback
import org.json.JSONObject

/**
 * Siblings
 * @Author wwdeng
 * @CreateTime: 2024/7/15 13:45
 * @Annotation：贷款申请 Model 实现
 */
class SibLoanApplyModelImpl {

    /**
     * 获取贷款额度
     */
    fun loadSibApplyDataAction(params: JSONObject,callBack: IHttpCallback){
        val httpUrl = ApiService.getHttpUrl(ApiService.API_URL.SIB_API_LOAN_APPLY_URL)
        HttpHelper.postSibAction(httpUrl,params,callBack)
    }

    /**
     * 创建订单
     */
    fun onSibCreateApplyOrderAction(params: JSONObject,callBack: IHttpCallback){
        val httpUrl = ApiService.getHttpUrl(ApiService.API_URL.SIB_API_LOAN_APPLY_URL)
        HttpHelper.postSibAction(httpUrl,params,callBack)
    }
}